Skip to content

Use incremental update in the pre-commit hook - #6

Merged
tae2089 merged 1 commit into
mainfrom
fix/precommit-hook-incremental
Jul 11, 2026
Merged

Use incremental update in the pre-commit hook#6
tae2089 merged 1 commit into
mainfrom
fix/precommit-hook-incremental

Conversation

@tae2089

@tae2089 tae2089 commented Jul 11, 2026

Copy link
Copy Markdown
Owner

pre-commit 훅이 커밋마다 ccg build .(전체 재파싱)을 돌던 것을 ccg update .(증분)로 변경.

커밋은 일부 파일만 바꾸므로 변경 파일만 해시 기반 재파싱하는 게 맞음 — 훨씬 빠르고 그래프 상태 보존. webhook 동기화 경로도 이미 Update(증분)를 씀.

실 바이너리로 검증:

  • 빈 그래프(첫 커밋)서 ccg updateadded=1 (전체 파싱, build와 동일 결과)
  • 파일 추가 후 재실행 → added=1 skipped=1 (증분)

부수 효과: DB 직접등록 상태(향후 set_annotation 등)가 커밋마다 전멸하지 않음.

전체 36 패키지 그린.

🤖 Generated with Claude Code

The pre-commit hook ran "ccg build ." — a full re-parse of the entire
repo on every commit. A commit only changes a few files, so use
"ccg update ." which re-parses just the changed files (hash-based) and
preserves existing graph state. Verified with the real binary that
update builds correctly from an empty graph (first commit) and skips
unchanged files on subsequent runs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@tae2089
tae2089 merged commit 480a8c1 into main Jul 11, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant